﻿@model CNav.Model.RegisterBusinessModel

@{
    ViewBag.Title = "Register";
}
@using (Html.BeginForm("Register", "RegisterBusiness", FormMethod.Post, new { autocomplete = "off" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div id="smallForm">
        <h3>Registration Form</h3>
        <ol>
            <li>
                @Html.LabelFor(m => m.BusinessName)
                @Html.TextBoxFor(m => m.BusinessName)
                <br />
                @Html.ValidationMessageFor(m => m.BusinessName)
            </li>
            <li>
                @Html.LabelFor(m => m.Email)
                @Html.TextBoxFor(m => m.Email)
                <br />
                @Html.ValidationMessageFor(m => m.Email)
            </li>

            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                <br />
                @Html.ValidationMessageFor(m => m.Password)
            </li>

            <li>
                @Html.LabelFor(m => m.ConfirmPassword)
                @Html.PasswordFor(m => m.ConfirmPassword)
                <br />
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </li>

            <li>
                @Html.LabelFor(m => m.PhoneNumber)
                @Html.TextBoxFor(m => m.PhoneNumber)
                <br />
                @Html.ValidationMessageFor(m => m.PhoneNumber)
            </li>
            <li>
                @Html.LabelFor(m => m.FaxNumber)
                @Html.TextBoxFor(m => m.FaxNumber)
            </li>

            <li>
                <label>&nbsp;</label>
                <input type="submit" value="Register" />
            </li>
        </ol>
    </div>
}

<script>
    $(function () {

        var cc = new CaseCentre();
        cc.Accordion("#smallForm");

    });
</script>